package com.wula.gtsns.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Zipcode entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "zipcode", catalog = "gtsns")
public class Zipcode implements java.io.Serializable {

	// Fields

	private Integer id;
	private String areaid;
	private String zip;
	private String code;

	// Constructors

	/** default constructor */
	public Zipcode() {
	}

	/** full constructor */
	public Zipcode(String areaid, String zip, String code) {
		this.areaid = areaid;
		this.zip = zip;
		this.code = code;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "areaid", nullable = false, length = 20)
	public String getAreaid() {
		return this.areaid;
	}

	public void setAreaid(String areaid) {
		this.areaid = areaid;
	}

	@Column(name = "zip", nullable = false, length = 20)
	public String getZip() {
		return this.zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	@Column(name = "code", nullable = false, length = 20)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}